package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.base.BaseShop;
import com.ruoyi.system.domain.base.ShopConfigDTO;
import com.ruoyi.system.domain.base.TreeShop;

import java.util.List;

/**
 * 工厂模型Service接口
 *
 * @author ruoyi
 * @date 2023-02-02
 */
public interface IBaseShopService extends IService<BaseShop> {

    List<ShopConfigDTO> selectShopConfigList(ShopConfigDTO dto);

    String checkDeptNameUnique(BaseShop baseShop);

    int insertShop(BaseShop baseShop);

    List<BaseShop> selectShopList(BaseShop shop);

    List<TreeShop> buildShopTreeSelect(List<BaseShop> shops);

    List<BaseShop> getTreeFindType(String type);

    List<BaseShop> getTreeFindId(Integer shopId);

    BaseShop getLevel(String shopCode);

    boolean hasChildByDeptId(Long shopId);
}
